package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDetailMapper {

    @Insert("insert into order_detail (name, image, order_id, dish_id, setmeal_id, dish_flavor, " +
            "number, amount) values (#{name}, #{image}, #{orderId}, #{dishId}, #{setmealId}, " +
            "#{dishFlavor}, #{number}, #{amount})")
    public void insertBatch(List<OrderDetail> orderDetailList);
}
